//
//  PolicyHttpTool.m
//  Village
//
//  Created by longrise on 2017/9/25.
//  Copyright © 2017年 程虎. All rights reserved.
//

#import "PolicyHttpTool.h"

@implementation PolicyHttpTool
+ (void)GetAreaIDWith:(PolicyModel *)model Success:(void (^)())success failure:(void (^)(NSString *))failure
{
    dispatch_async(dispatch_get_global_queue(0, 0), ^{
        NSMutableDictionary *entitybean = [NSMutableDictionary dictionary];
        NSMutableDictionary *dict = [NSMutableDictionary dictionary];
        [dict setObject:@"110101000000000000" forKey:@"areaid"];
        [dict setObject:@"5" forKey:@"pagesize"];
        [dict setObject:@"1" forKey:@"pagenum"];
        
        
        [entitybean setValue:dict forKey:@"entitybean"];
        
        [NetRequestClass Post:searchporegulationsURL Parameters:entitybean success:^(id result)  {
            if (success) {
                success();
            }
        } failure:^(id valueCode, id error) {
            if (failure) {
                failure(error);
            }
            NSLog(@"areaid error -----  %@",error);
        }];
    });
}
@end
